<?php /*
<!--nocache

<div class="item">
    <h1 class="title">Konto</h1>
    <div class="content">
        <?php if ($this->Session->check('Auth.User.id')): ?>
            <?php if ($this->Session->check('Auth.User.google')): ?>
        <div class="user-thumb">
            <a href="https://plus.google.com/<?=$this->Session->read('Auth.User.google')?>">
            <img src="https://www.google.com/s2/photos/profile/<?=$this->Session->read('Auth.User.google')?>" height="40" />
            </a>
        </div>
            <?php elseif ($this->Session->check('Auth.User.facebook')): ?>
        <a href="//www.facebook.com/<?=$this->Session->read('Auth.User.facebook')?>">
        <img src="https://graph.facebook.com/<?=$this->Session->read('Auth.User.facebook')?>/picture" height="40" />
        </a>
            <?php endif; ?>
        <a href="<?=$this->Html->url(array('controller'=>'users','action'=>'logout'));?>">Wyloguj</a>
        <?php else: ?>
        <a href="<?=$this->Html->url(array('controller'=>'users','action'=>'login'));?>">Zaloguj</a>
        <?php endif; ?>
    </div>
</div>

/nocache-->
*/

//in order to use STATIC component there will be no such thing like session check.
//Use JS to handle logged in user.
?>
<div class="item hidden userMenu" data-logout="<?=$this->Html->url(array('controller'=>'users','action'=>'logout'));?>" data-login="<?=$this->Html->url(array('controller'=>'users','action'=>'login'));?>">
    <h1 class="title">Konto</h1>
    <div class="content">
        
    </div>
</div>




<!--<div class="item">
    <h1 class="title">Moje wydarzenia</h1>
</div>-->
<div class="item">
    <h1 class="title">Social</h1>
    <div class="content">
        <div class="g-plus" data-href="https://plus.google.com/105194415052752125887?rel=publisher" data-width="300" data-height="131" data-theme="light"></div>
        <div class="fb-like-box" data-href="https://www.facebook.com/GDG.Poland" data-width="300" data-height="90" data-show-faces="false" data-stream="false" data-header="false"></div>
    </div>

</div>
<div class="item">
    <h1 class="title">Newsletter</h1>
    <div class="content">
        <p>Jeśli chcesz być na bieżąco z wydarzeniami organizowanymi przez GDG, zapisz się na newsletter:</p>
        <form onsubmit="return false;" class="mailing-form" action="<?=$this->Html->url(array('controller'=>'users','action'=>'mailingregister'));?>" method="post">
            <input class="email" type="email" name="email" id="MailingEmail" placeholder="podaj adres e-mail"/>
            <input type="submit" value="Zapisz" class="button"/>
        </form>
    </div>
</div>
